import request from '@/utils/request'

// 查询原料库存列表
export function listMaterialStock(query) {
  return request({
    url: '/material/materialStock/list',
    method: 'get',
    params: query
  })
}

// 查询原料库存详细
export function getMaterialStock(rowId) {
  return request({
    url: '/material/materialStock/' + rowId,
    method: 'get'
  })
}

// 新增原料库存
export function addMaterialStock(data) {
  return request({
    url: '/material/materialStock',
    method: 'post',
    data: data
  })
}

// 修改原料库存
export function updateMaterialStock(data) {
  return request({
    url: '/material/materialStock',
    method: 'put',
    data: data
  })
}

// 删除原料库存
export function delMaterialStock(rowId) {
  return request({
    url: '/material/materialStock/' + rowId,
    method: 'delete'
  })
}

// 导出原料库存
export function exportMaterialStock(query) {
  return request({
    url: '/material/materialStock/export',
    method: 'get',
    params: query
  })
}